Skip to content

Add connection pooling #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 11, 2015
Merged

Add connection pooling #8

merged 2 commits into from
May 11, 2015

Conversation

anttih
Copy link
Collaborator

@anttih anttih commented May 4, 2015

Use connection pooling with withConnection and add disconnect for disconnecting all connections.

Fixes #4, but requires some work on configuring the pool.

…nections

Fixes epost#4, but requires some work on configuring the pool.
@epost
Copy link
Owner

epost commented May 4, 2015

Neat. Do you think you could you make it so that CP is an optional feature in addition to 'straight' connections, instead of replacing it?

@epost
Copy link
Owner

epost commented May 4, 2015

As a side note, I like to make the goings-on explicit in the types, e.g. Pool in https://github.com/epost/purescript-any-db/

Rename the pooling version to `withClient`.
epost added a commit that referenced this pull request May 11, 2015
@epost epost merged commit 52d4185 into epost:master May 11, 2015
@epost
Copy link
Owner

epost commented May 11, 2015

Thanks Antti! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection pooling
2 participants